package com.greateamd.timetableasy.client.services.room;

import java.util.Date;
import java.util.List;

import com.google.gwt.user.client.rpc.AsyncCallback;
import com.greateamd.timetableasy.domain.Room;


public interface RoomServiceAsync {

	void remove(Room room, AsyncCallback<Boolean> callback);
	void find(int id, AsyncCallback<Room> callback);
	void update(Room room, AsyncCallback<Boolean> callback);
	void save(Room room, AsyncCallback<Boolean> callback);
	void getAll(AsyncCallback<List<Room>> callback);
	void getAllOfLoggedUser(AsyncCallback<List<Room>> callback);
	
	void getDisponibility(Integer excluseThisEventId,String room,Date from,int duration,AsyncCallback<Boolean> callback);
}
